﻿using DL.Net;
using Logic.Protocal.MessagePool;
using Message.Base;
using NetGameRunning;

namespace Logic.Handler
{
    public static class RunTimeMessageHandle
    {
        private static readonly ResponseResultContainer ResponseResultContainer = ResponseResultContainer.Inst;
        public static void AddAllListener()
        {
            NetAsyncMgr.AddNetMessageListener(MessagePool.ResponseMessage_ID, ResponseMessageHandler);
        }

        //响应
        private static void ResponseMessageHandler(BaseMessage msg)
        {
            ResponseResultContainer.AddResponseResult(msg as ResponseMessage);
        }
    }
}
